package com.foreveross.fetl.application.impl;

import java.util.List;

import javax.inject.Inject;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.foreveross.fetl.application.IFreightMonitorCabinApplication;
import com.foreveross.fetl.common.application.BaseApplicationImpl;
import com.foreveross.fetl.core.domain.freight.CabinEntity;
import com.foreveross.fetl.core.domain.freight.repository.IFreightMonitorCabinRepository;

@Transactional
@Service("freightMonitorCabinApplication")
public class FreightMonitorCabinApplicationImpl extends BaseApplicationImpl
		implements IFreightMonitorCabinApplication {

	@Inject
	public IFreightMonitorCabinRepository freightMonitorCabinRepository;
	
	@Override
	public List<CabinEntity> findByMonitorId(String id) {
		return freightMonitorCabinRepository.findByMonitorId(id);
	}

	@Override
	public void create(CabinEntity c) {
		freightMonitorCabinRepository.create(c);
	}

	@Override
	public void batchCreate(List<CabinEntity> cs) {
		// TODO Auto-generated method stub
		
	}

}
